//轮播图
import { ref,onMounted } from 'vue';

import { getBannereAPI } from "@/apis/home";



export function useBanner() {
    const bannerData = ref([]);
    const getBanner = async () => {
        const res = await getBannereAPI({
            distributionSite: '2'
        });
        bannerData.value = res.result;
    };

    onMounted(() => {
        getBanner();
    });

    return { bannerData };
}